﻿
//
//
//


//
//
//

namespace Microsoft.OpenTurf.Silverlight.Shared
{
    using System;

    public class TwitterTranslator : ITranslator<IFeedItem, TwitterFeedItem>
    {
        public IFeedItem Translate(IFeedItem genericFeedItem, TwitterFeedItem concreteFeedItem)
        {
            genericFeedItem.ID = concreteFeedItem.id;
            genericFeedItem.Title = concreteFeedItem.from_user;
            genericFeedItem.Description = concreteFeedItem.text;
            genericFeedItem.Icon = new Uri(concreteFeedItem.profile_image_url);
            genericFeedItem.CoordinateList = concreteFeedItem.location;
            //genericFeedItem.Coordinates = concreteFeedItem.MapPoints;

            return genericFeedItem;
        }
    }
}